package com.example.chapp.control;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;

import com.example.chapp.R;

public class course2active extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.course2);
        View but1=findViewById(R.id.sy);
        but1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(course2active.this, shouyeactive.class);
                startActivity(intent);
            }
        });
        View but2=findViewById(R.id.wd);
        but2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(course2active.this, wodeactive.class);
                startActivity(intent);
            }
        });
        View a1=findViewById(R.id.a1);
        a1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(course2active.this, course1active.class);
                startActivity(intent);
            }
        });
        View a3=findViewById(R.id.aa3);
        a3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(course2active.this, course3active.class);
                startActivity(intent);
            }
        });
        View a4=findViewById(R.id.a4);
        a4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(course2active.this, course4active.class);
                startActivity(intent);
            }
        });
    }
}
